#ifndef COMPILER_ONLINE
#include "head.cpp"
#endif

void Test1()
{
    int ret = Solution().getMax({10, 1, 20, 3, 9, 15});
    if (ret == 20)
    {
        cout << "测试用例[10,1,20,3,9,15]通过" << endl;
    }
    else
    {
        cout << "测试用例[10,1,20,3,9,15]没有通过" << endl;
    }
}

void Test2()
{
    int ret = Solution().getMax({10, -1, 20, 3, -9, 15});
    if (ret == 20)
    {
        cout << "测试用例[10,-1,20,3,-9,15]通过" << endl;
    }
    else
    {
        cout << "测试用例[10,-1,20,3,-9,15]没有通过" << endl;
    }
}

int main()
{
    Test1();
    Test2();
    return 0;
}